<template>
  <div>
     <input type="text" :value="msg" @input="fn">
   </div>
</template>
 
<script>
export default {
  data() {
    return {
      msg:'hello'
    };
  },

  methods: {
    fn(e){
      this.msg = e.target.value
    }
  }
};
</script>

<style scoped>
     
</style>